namespace ServerManagerApi
{
    public class Program
    {
        public static void Main(string[] args)
        {
            var builder = WebApplication.CreateBuilder(args);

            // Add services to the container.

            builder.Services.AddControllers();
            builder.Services.AddCors(p => p.AddDefaultPolicy(p => p.AllowAnyHeader().AllowAnyOrigin().AllowAnyMethod()));
            var app = builder.Build();

            // Configure the HTTP request pipeline.

           // app.UseAuthorization();
            app.UseCors();            
            app.MapControllers();

            app.Run();
        }
    }
}
